// @ts-ignore
/* eslint-disable */
import request from "axios";
import type { API } from "./typings";

/** 本地文件下载到前端 POST /download */
export async function downloadLocalUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.downloadLocalUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<any>(`/api/download`, {
    method: "POST",
    params: {
      ...params,
    },
    responseType: "blob",
    ...(options || {}),
  });
}
